package lab.cloud.project.share;

public class ClientController implements ClientControllerInterface{
	ClientModelInterface model;
	ClientView view;
    LoginView lv;
	//ChatClient chat;
	FileStoreInterface store;
	
	public ClientController(ClientModelInterface model){
		this.model = model;
        lv = new LoginView(this, model);
        lv.createView();
		
	}
    @Override
    public void setClientView(ClientView c){
        view = c;
    }
	@Override
	public void sendChat(String text) {
		text = model.getAuthor() + ":\t" + text;
		//chat.send(text);
		recChat(text);
	}
	
	@Override
	public void recChat(String text){
		model.setChatShowText(text);
	}

	@Override
	public void uploadFile(String local, String path) {
		//store.upload(local, path);
	}

	@Override
	public void downloadFile(String remotePath, String localPath) {
		//store.download(localPath);
		//System.out.println("Downloading from " + remotePath + " to " + localPath);
	}

}
